<%-- 
    Document   : cadveiculos
    Created on : 06/04/2013, 18:20:41
    Author     : helton
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" 
        import="model.entity.Veiculo" %>
<jsp:useBean id="obj" type="Veiculo" scope="request"/>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="js/mascaras.js"></script>
         <link rel="stylesheet" href="css/estilo.css" type="text/css"/>
    </head>
    <body>
        <h1 align="center">Cadastro e Manutenção de Veiculos</h1>
        <div class="alteraVeiculo">
        <form method="post" action="/av1/alterarveiculo">
            <table align="center" >
                <tr>
                    <td align="right" width="150">Placa:</td>
                    <td align="left">

                        <input type="text" name="placa" id="placa" value='${obj.placa}' onkeypress="mask(this, '###-####');"
                               maxlength="8" size="7"/>

                    </td>
                </tr>

                <tr>
                    <td align="right" width="150">Ano de Fabricação:</td>
                    <td align="left">
                        <input type="texte" name="anofab" id="anofab" value='${obj.anoDeFabricacao}'
                               maxlength="4" size="5"/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150">Modelo Ano:</td>
                    <td align="left">
                        <input type="text" name="anomod" id="anomod" value='${obj.anoDeModelo}'
                               maxlength="4" size="5"/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150">Cor:</td>
                    <td align="left">
                        <select name="cor" id="cor">
                            <option>Selecione uma cor</option>
                            <option value="Azul">Azul</option>
                            <option value="Branco">Branco</option>
                            <option value="Verde">Verde</option>
                            <option value="Vermelho">Vermelho</option>
                            <option value="Preto">Preto</option>
                        </select>                                          
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150">Marca:</td>
                    <td align="left">
                        <select name="marca" id="marca">
                            <option value="1">teste</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150">Modelo:</td>
                    <td align="left">
                        <select name="modelo" id="modelo">
                            <option value="1">teste</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150">Proprietario:</td>
                    <td align="left">
                        <input type="text" name="cpf" id="cpf" maxlength="14" onkeypress="mask(this, '###.###.###-##');"
                               value='${obj.cpf}'/>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="150"></td>
                    <td align="left">
                        <input type="submit" value="Salvar"/>
                    </td>
                </tr>
            </table>
        </form>
        </div>
    </body>
</html>
